package com.xuetang9.t9.hotel.services;

import com.xuetang9.t9.hotel.beans.ETakeoutOrder;
import com.xuetang9.t9.hotel.mapper.condition.impl.TakeoutOrderCondition;

import java.util.Date;
import java.util.List;

/**
 * @Classname ITakeoutSerive
 * @Description TODO
 * @Date 2020/3/6 16:39
 * @Created by ASUS
 */
public interface ITakeoutSerive {
    boolean insertTakeout(ETakeoutOrder order);

    boolean removeTakeout(Long id);

    ETakeoutOrder qeuryById(Long id);

    boolean takeMeals(Long id, Date nowTime);

    List<ETakeoutOrder> queryAll();

    List<ETakeoutOrder> queryByNone();

    List<ETakeoutOrder> queryByTake();

    /**
     * 查询
     * @param condition
     * @return
     */
    List<ETakeoutOrder> queryByAll(TakeoutOrderCondition condition);

    /**
     * 总数量
     * @param condition
     * @return
     */
    Long queryByCount(TakeoutOrderCondition condition);
}
